package com.tepth.busfix.main.chooseoperator;

import com.tepth.busfix.base.BaseModel;
import com.tepth.busfix.base.BasePresenter;
import com.tepth.busfix.base.BaseView;
import com.tepth.busfix.bean.reponse.TroubleClassification;
import com.tepth.busfix.network.ApiModel;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by pc on 2017/3/16.
 */

public class ChooseOperatorContract {

    interface View extends BaseView {
        String getAuthKey();
        void setTroubleClassifications(List<TroubleClassification> list);
    }

    interface Model extends BaseModel {
        Observable<ApiModel<List<TroubleClassification>>> getTroubleClassification(String authKey);
    }

    abstract static class Presenter extends BasePresenter<Model, View> {

        @Override
        public void onStart() {

        }
        public abstract void getTroubleClassification();
    }
}